using TMPro;
using UnityEditor;
namespace Runtime.Module.GameGraphic.Editor
{
    [CustomEditor(typeof(TMP_InputField), true)]
    public class CustomTMP_InputFieldEditor : TMPro.EditorUtilities.TMP_InputFieldEditor
    {
        IsScriptCtrlEditorData<TMP_InputField> isScriptCtrlEditorData;

        protected override void OnEnable()
        {
            base.OnEnable();
            isScriptCtrlEditorData = new IsScriptCtrlEditorData<TMP_InputField>(serializedObject, (TMP_InputField)target);
        }
        
        protected override void OnDisable()
        {
            base.OnDisable();
            isScriptCtrlEditorData = null;
        }
        
        public override void SaveChanges()
        {
            base.SaveChanges();
        }

        public override void OnInspectorGUI()
        {
            isScriptCtrlEditorData.OnInspectorGUIOfScript();
            base.OnInspectorGUI();
        }
    }
}